package com.aaa.mapper;

import com.aaa.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {
    List<Goods> findAll();
    Goods find(Integer goodsId);
    int doAdd(Goods goods);
    int doUpdate(Goods goods);
    //随机获取若干个商品
    List<Goods> findRandLimit(Integer size);
    //根据分类查询商品
    List<Goods> findByCategory(Integer categoryId);
}
